﻿using Microsoft.EntityFrameworkCore;
using WorldmeServer.Models.材质相关;
using WorldmeServer.Models.游戏相关;
using WorldmeServer.Models.用户相关;
using WorldmeServer.Models.衣柜相关;

namespace WorldmeServer.Services.Database
{
    public class MySqlContext : DbContext
    {
        public MySqlContext(DbContextOptions<MySqlContext> option) : base(option)
        {

        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            
        }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User> Users { get; set; }
        /// <summary>
        /// 玩家表（角色）
        /// </summary>
        public DbSet<Player> Players { get; set; }
        /// <summary>
        /// 材质表
        /// </summary>
        public DbSet<Texture> Textures { get; set; }
        public DbSet<Closet> Closets { get; set; }
    }
}
